<template>
  <van-nav-bar :title="title" :left-text="leftText" left-arrow @click-left="onClickLeft" />
</template>
<script>
import { NavBar } from "vant";
export default {
  name: "nav-bar",
  components:{
    [NavBar.name]:NavBar
  },
  props: ["title", "leftText"],
  methods: {
    onClickLeft(event) {
      this.$emit("backPage", event);
    }
  }
};
</script>
